<?php
/**
 * Description of Connexion
 *
 * @author FFOZEU
 */
namespace Applications\Modules\Users\Models;

if( !defined('IN') ) die('Hacking Attempt');

use Library\Record;

class Users extends Record{
    protected $id;
    protected $pseudo;
    protected $email;
	protected $password;
	protected $nom;
	protected $prenom;
	protected $adresse;
	protected $ville;
	protected $cp;
	protected $pays;
	protected $portable;
	protected $fixe;
	protected $credits;
	protected $news;
	protected $conditions;
	protected $ip;
    protected $civilite;
    protected $role;
    protected $regDate;
    protected $countryName;


    public function isAuthenticated() {
	
        if( !empty($_SESSION['pseudo']) AND !empty($_SESSION['password']) ) return TRUE;
		else return FALSE;
		
    }
	
	public function setId($id) {
	
        $this->id = $id;
		
    }
	
    public function setPseudo($pseudo) {
	
        $this->pseudo = $pseudo;
		
    }
	
    public function setEmail($email) {
	
        $this->email = $email;
		
    }
	
    public function setPassword($password) {
	
        $this->password = $password;
		
    }
	
    public function setNom($nom) {
	
        $this->nom = $nom;
		
    }
	
    public function setPrenom($prenom) {
	
        $this->prenom = $prenom;
		
    }
	
    public function setAdresse($adresse) {
	
        $this->adresse = $adresse;
		
    }
	
    public function setVille($ville) {
	
        $this->ville = $ville;
		
    }
	
    public function setCp($cp) {
	
        $this->cp = $cp;
		
    }
	
    public function setPays($pays) {
	
        $this->pays = $pays;
		
    }
	
    public function setCountryName($countryName) {
	
        $this->countryName = $countryName;
		
    }
    public function setPortable($portable) {
	
        $this->portable = $portable;
		
    }
	
    public function setFixe($fixe) {
	
        $this->fixe = $fixe;
		
    }
	
	public function setCredits($credits) {
	
       $this->credits = $credits;
		
    }
	
    public function setNews($news) {
	
        $this->news = $news;
		
    }
	
    public function setConditions($conditions) {
	
        $this->conditions = $conditions;
		
    }
	
    public function setIp($ip) {
	
        $this->ip = $ip;
		
    }
    
    public function setRole($role) {
	
        $this->role = $role;
		
    }
	
    public function setRegDate($regDate) {
	
        $this->regDate = $regDate;
		
    }
    
     public function getIp() {
	
         return $this->ip;
		
    }
    
    public function setCivilite($civilite) {
	
        $this->civilite = $civilite;
		
    }
    
    public function getId() {
	
        return $this->id;
		
    }
	
    public function getPseudo() {
	
        return $this->pseudo;
		
    }
	
    public function getEmail() {
	
        return $this->email;
		
    }
	
    public function getNom() {
	
        return $this->nom;
		
    }
	
    public function getPrenom() {
	
        return $this->prenom;
		
    }
	
    public function getAdresse() {
	
        return $this->adresse;
		
    }
	
    public function getVille() {
	
        return $this->ville;
		
    }
	
    public function getCp() {
	
        return $this->cp;
		
    }
	
    public function getPays() {
	
        return $this->pays;
		
    }
	
    public function getPortable() {
	
        return $this->portable;
		
    }
	
    public function getFixe() {
	
        return $this->fixe;
		
    }
	
    public function getCredits() {
	
        return $this->credits;
		
    }
	
    public function getNews() {
	
        return $this->news;
        
    }
    
    public function getCivilite() {
	
        return $this->civilite;
		
    }
    public function getPassword(){
        return $this->password;
    }
    
    public function getConditions(){
        return $this->conditions;
    }
   
    public function getRole(){
        return $this->role;
    }
    
    public function getRegDate() {
	
        return $this->regDate;
		
    }
    
    public function getCountryName() {
	
        return $this->countryName;
		
    }
}

?>
